package org.achievement.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.achievement.system.pojo.entity.User;
import org.achievement.system.pojo.form.UserForm;
import org.achievement.system.pojo.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface UserDao extends BaseMapper<User> {

    /**
     * 查询列表
     *
     * @param userForm
     * @return
     */
    public List<UserVo> list(@Param("userForm") UserForm userForm);

    /**
     * 统计查询总数
     *
     * @param userForm
     * @return
     */
    public Integer count(@Param("userForm") UserForm userForm);

    /**
     * 统计用户数
     *
     * @return
     */
    public HashMap chartData();

}